home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / NVPBDP (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  1.6 KB  |  36 lines

  1. package com.sun.java.swing.plaf.metal;
  2.  
  3. import com.sun.java.swing.border.AbstractBorder;
  4. import java.awt.Component;
  5. import java.awt.Graphics;
  6. import java.awt.Insets;
  7.  
  8. class MetalComboBoxEditor$EditorBorder extends AbstractBorder {
  9.    // $FF: synthetic field
  10.    MetalComboBoxEditor this$0;
  11.  
  12.    public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) {
  13.       g.translate(x, y);
  14.       g.setColor(MetalLookAndFeel.getControlDarkShadow());
  15.       g.drawLine(0, 0, w - 1, 0);
  16.       g.drawLine(0, 0, 0, h - 2);
  17.       g.drawLine(0, h - 2, w - 1, h - 2);
  18.       g.setColor(MetalLookAndFeel.getControlHighlight());
  19.       g.drawLine(1, 1, w - 1, 1);
  20.       g.drawLine(1, 1, 1, h - 1);
  21.       g.drawLine(1, h - 1, w - 1, h - 1);
  22.       g.setColor(MetalLookAndFeel.getControl());
  23.       g.drawLine(1, h - 2, 1, h - 2);
  24.       g.translate(-x, -y);
  25.    }
  26.  
  27.    public Insets getBorderInsets(Component c) {
  28.       return MetalComboBoxEditor.editorBorderInsets;
  29.    }
  30.  
  31.    // $FF: synthetic method
  32.    MetalComboBoxEditor$EditorBorder(MetalComboBoxEditor this$0) {
  33.       this.this$0 = this$0;
  34.    }
  35. }
  36.